from sqlalchemy import Column, Integer, String, \
    Text, ForeignKey, SmallInteger
from sqlalchemy.orm import relationship
from datetime import datetime


from app.models import Base
from app import create_session



class Moviecol(Base):
    id = Column(Integer, primary_key=True)  # 记录id

    movie_id = Column(Integer, ForeignKey('movie.id'))   # move表的id
    user_id = Column(Integer, ForeignKey('user.id'))   # user表的id